//
//  ShopColletionViewCell.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/8/13.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "ShopCollectionViewCell.h"
@interface ShopCollectionViewCell()

@end

@implementation ShopCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setShopInfo:(ShopInfoModel *)shopInfo
{
	if (_shopInfo != shopInfo) {
		_title.text = shopInfo.title;
		_price.text = shopInfo.price;
		_soldCount.text = shopInfo.sold_num;
		_goodsImage.image = [UIImage imageWithData:
							 [NSData dataWithContentsOfURL:
							  [NSURL URLWithString:shopInfo.photo.firstObject]]];
	}
}


@end
